from common.Utils import ForumDriver

from tests import ForumLoginTest
from tests import ForumRegisterTest
from tests import  ForumHomePageTest
from tests import  ForumDetailTest
from tests import ForumPriInfoTest
from tests import  ForumPublishPostTest
from tests import ForumMyPostTest
from tests import  ForumPerCenterTest


if __name__ == "__main__":

  # login = ForumLoginTest.ForumLogin()
  # login.ForumSucLoginTest()
  # login.ForumFailLoginTest()

  # register = ForumRegisterTest.ForumRegister()
  # # register.ForumRegisSucTest()
  # register.ForumRegisFailTest()

  # 先登录
  # login = ForumLoginTest.ForumLogin()
  # login.ForumSucLoginTest()
  # # 再检查论坛首页
  # home = ForumHomePageTest.HomePage()
  # home.ForumLoginSucHomePage()
  # detail = ForumDetailTest.ForumDetail()
  # detail.ForumLoginSucDetail()
  # detail.funPageFunctions()

  # 先登录
  # login = ForumLoginTest.ForumLogin()
  # login.ForumSucLoginTest()
  # # 再检查论坛首页
  # home = ForumHomePageTest.HomePage()
  # home.ForumLoginSucHomePage()
  # detail = ForumDetailTest.ForumDetail()
  # detail.ForumLoginSucDetail()
  # pinfo = ForumPriInfoTest.ForumPrinfo()
  # # pinfo.PInfoPageelements()
  # pinfo.PInfofunPageFunctions()

  # login = ForumLoginTest.ForumLogin()
  # login.ForumSucLoginTest()
  # # 再检查论坛首页
  # home = ForumHomePageTest.HomePage()
  # home.ForumLoginSucHomePage()
  # pb = ForumPublishPostTest.ForumPub()
  # pb.ForumPubPageelements()
  # pb.FPfunPageFunctions()

  login = ForumLoginTest.ForumLogin()
  login.ForumSucLoginTest()
  # 再检查论坛首页
  home = ForumHomePageTest.HomePage()
  home.ForumLoginSucHomePage()
  PerCenter = ForumPerCenterTest.ForumperCenter()
  PerCenter.PerCebterPageelements()
  PerCenter.PerCenterPageFunctions()


  ForumDriver.driver.quit()

